// mock-data.js
// 行业、环节、渠道、客户、走访、提级营销、审核等所有页面所需示例数据

// 行业数据
export const industries = [
  {
    id: 'ind001',
    name: '南京制造业',
    createdAt: '2024-05-01 09:00:00',
    status: '已通过',
    descPersonal: '南京制造业个金业务潜力巨大。',
    descAgriculture: '三农业务有较大发展空间。',
    descCreditCard: '信用卡渗透率高。',
    segments: [
      {
        id: 'seg001',
        name: '生产',
        type: '生产',
        revenue: 8000,
        output: 12000,
        settlement: 5000,
        customerCount: 30,
        customerScale: '亿级',
        channels: ['ch001', 'ch002'],
        customers: ['cus001', 'cus002'],
      },
      {
        id: 'seg002',
        name: '批发',
        type: '批发',
        revenue: 3000,
        output: 5000,
        settlement: 2000,
        customerCount: 15,
        customerScale: '5000万',
        channels: ['ch003'],
        customers: ['cus003'],
      },
    ],
  },
  {
    id: 'ind002',
    name: '南京软件业',
    createdAt: '2024-05-02 10:00:00',
    status: '审核中',
    descPersonal: '软件业高净值客户多。',
    descAgriculture: '',
    descCreditCard: '信用卡需求旺盛。',
    segments: [],
  },
  {
    id: 'ind003',
    name: '南京零售业',
    createdAt: '2024-05-03 11:00:00',
    status: '未通过',
    descPersonal: '',
    descAgriculture: '零售业三农客户较多。',
    descCreditCard: '',
    segments: [],
  },
  {
    id: 'ind004',
    name: '南京物流业',
    createdAt: '2024-05-04 12:00:00',
    status: '未提交',
    descPersonal: '',
    descAgriculture: '',
    descCreditCard: '',
    segments: [],
  },
  {
    id: 'ind005',
    name: '南京金融业',
    createdAt: '2024-05-05 13:00:00',
    status: '已通过',
    descPersonal: '金融业客户AUM高。',
    descAgriculture: '',
    descCreditCard: '信用卡普及。',
    segments: [],
  },
]

// 渠道数据
export const channels = [
  {
    id: 'ch001',
    name: '南京新街口支行',
    address: '南京市秦淮区中山南路100号',
    desc: '核心商圈支行',
    industry: '南京制造业',
    segment: '生产',
  },
  {
    id: 'ch002',
    name: '南京鼓楼支行',
    address: '南京市鼓楼区中央路200号',
    desc: '交通枢纽支行',
    industry: '南京制造业',
    segment: '生产',
  },
  {
    id: 'ch003',
    name: '南京软件谷支行',
    address: '南京市雨花台区软件大道88号',
    desc: '软件园区支行',
    industry: '南京制造业',
    segment: '批发',
  },
  {
    id: 'ch004',
    name: '南京江宁支行',
    address: '南京市江宁区双龙大道300号',
    desc: '江宁区域支行',
    industry: '南京零售业',
    segment: '零售',
  },
  {
    id: 'ch005',
    name: '南京浦口支行',
    address: '南京市浦口区浦珠路400号',
    desc: '浦口新兴支行',
    industry: '南京物流业',
    segment: '物流',
  },
]

// 客户数据
export const customers = [
  {
    id: 'cus001',
    name: '王**',
    customerNo: '3201************21',
    phone: '186***80897',
    industry: '南京制造业',
    segment: '生产',
    type: '企业',
    merchantNo: 'M20240001',
    companyName: '南京金龙机械有限公司',
    creditCode: '9132************21',
    address: '南京市江北新区龙腾路88号',
    area: 1200,
    revenue: 8000,
    output: 12000,
    settlement: 5000,
    customerCount: 30,
    customerScale: '亿级',
    manager: '李明',
    inputUser: '张伟',
    inputOrg: '南京新街口支行',
    status: '已通过',
    products: [
      { name: '存款', amount: 500, date: '2024-05-01' },
      { name: '理财', amount: 200, date: '2024-05-02' },
    ],
    visits: ['visit001'],
    logs: ['log001'],
  },
  {
    id: 'cus002',
    name: '赵**',
    customerNo: '3201************22',
    phone: '139***31234',
    industry: '南京制造业',
    segment: '生产',
    type: '企业',
    merchantNo: 'M20240002',
    companyName: '南京华电电子有限公司',
    creditCode: '9132************22',
    address: '南京市鼓楼区中央路200号',
    area: 800,
    revenue: 3000,
    output: 5000,
    settlement: 2000,
    customerCount: 15,
    customerScale: '5000万',
    manager: '王磊',
    inputUser: '张伟',
    inputOrg: '南京新街口支行',
    status: '审核中',
    products: [{ name: '信用贷', amount: 300, date: '2024-05-03' }],
    visits: ['visit002'],
    logs: ['log002'],
  },
  {
    id: 'cus003',
    name: '孙**',
    customerNo: '3201************23',
    phone: '158***56789',
    industry: '南京制造业',
    segment: '批发',
    type: '企业',
    merchantNo: 'M20240003',
    companyName: '南京百货批发有限公司',
    creditCode: '9132************23',
    address: '南京市雨花台区软件大道88号',
    area: 600,
    revenue: 2000,
    output: 3000,
    settlement: 1000,
    customerCount: 10,
    customerScale: '千万',
    manager: '刘强',
    inputUser: '张伟',
    inputOrg: '南京新街口支行',
    status: '未通过',
    products: [],
    visits: ['visit003'],
    logs: ['log003'],
  },
  {
    id: 'cus004',
    name: '李**',
    customerNo: '3201************24',
    phone: '187***65432',
    industry: '南京零售业',
    segment: '零售',
    type: '企业',
    merchantNo: 'M20240004',
    companyName: '南京零售有限公司',
    creditCode: '9132************24',
    address: '南京市江宁区双龙大道300号',
    area: 500,
    revenue: 1500,
    output: 2500,
    settlement: 800,
    customerCount: 8,
    customerScale: '500万',
    manager: '王磊',
    inputUser: '张伟',
    inputOrg: '南京新街口支行',
    status: '未提交',
    products: [],
    visits: ['visit004'],
    logs: ['log004'],
  },
  {
    id: 'cus005',
    name: '周**',
    customerNo: '3201************25',
    phone: '136***98765',
    industry: '南京物流业',
    segment: '物流',
    type: '企业',
    merchantNo: 'M20240005',
    companyName: '南京物流有限公司',
    creditCode: '9132************25',
    address: '南京市浦口区浦珠路400号',
    area: 700,
    revenue: 2200,
    output: 3200,
    settlement: 1200,
    customerCount: 12,
    customerScale: '百万级',
    manager: '李明',
    inputUser: '张伟',
    inputOrg: '南京新街口支行',
    status: '审核中',
    products: [],
    visits: ['visit005'],
    logs: ['log005'],
  },
]

// 走访记录
export const visits = [
  {
    id: 'visit001',
    customerId: 'cus001',
    industry: '南京制造业',
    segment: '生产',
    merchant: '南京金龙机械有限公司',
    theme: '业务拓展',
    purpose: '了解客户需求',
    user: '张伟',
    org: '南京新街口支行',
    type: '现场',
    time: '2024-05-10 10:00:00',
    remark: '客户有新增贷款需求',
    photos: [],
    location: '南京市江北新区龙腾路88号',
    lnglat: [118.789, 32.123],
    products: [{ name: '存款', amount: 100, date: '2024-05-10' }],
    promotion: 'promo001',
    logs: ['logv001'],
  },
  {
    id: 'visit002',
    customerId: 'cus002',
    industry: '南京制造业',
    segment: '生产',
    merchant: '南京华电电子有限公司',
    theme: '产品推介',
    purpose: '推介新理财产品',
    user: '张伟',
    org: '南京新街口支行',
    type: '电联',
    time: '2024-05-11 11:00:00',
    remark: '',
    photos: [],
    location: '南京市鼓楼区中央路200号',
    lnglat: [118.765, 32.045],
    products: [{ name: '理财', amount: 200, date: '2024-05-11' }],
    promotion: '',
    logs: ['logv002'],
  },
  {
    id: 'visit003',
    customerId: 'cus003',
    industry: '南京制造业',
    segment: '批发',
    merchant: '南京百货批发有限公司',
    theme: '客户回访',
    purpose: '回访满意度',
    user: '张伟',
    org: '南京新街口支行',
    type: '现场',
    time: '2024-05-12 14:00:00',
    remark: '',
    photos: [],
    location: '南京市雨花台区软件大道88号',
    lnglat: [118.8, 32.1],
    products: [],
    promotion: '',
    logs: ['logv003'],
  },
  {
    id: 'visit004',
    customerId: 'cus004',
    industry: '南京零售业',
    segment: '零售',
    merchant: '',
    theme: '理财咨询',
    purpose: '客户咨询理财产品',
    user: '李娜',
    org: '南京江宁支行',
    type: '现场',
    time: '2024-05-13 09:30:00',
    remark: '',
    photos: [],
    location: '南京市江宁区双龙大道300号',
    lnglat: [118.9, 32.2],
    products: [],
    promotion: '',
    logs: ['logv004'],
  },
  {
    id: 'visit005',
    customerId: 'cus005',
    industry: '南京物流业',
    segment: '物流',
    merchant: '南京物流有限公司',
    theme: '业务洽谈',
    purpose: '洽谈物流金融合作',
    user: '王磊',
    org: '南京浦口支行',
    type: '现场',
    time: '2024-05-14 15:00:00',
    remark: '',
    photos: [],
    location: '南京市浦口区浦珠路400号',
    lnglat: [118.95, 32.25],
    products: [],
    promotion: 'promo002',
    logs: ['logv005'],
  },
]

// 提级营销申请
export const promotions = [
  {
    id: 'promo001',
    target: '省行公司金融部',
    reason: '客户为重点企业，需省行陪同走访',
    applicant: '张伟',
    org: '南京新街口支行',
    time: '2024-05-08 09:00:00',
    status: '已通过',
    auditOpinion: '同意陪同',
    auditTime: '2024-05-09 10:00:00',
    auditUser: '省行领导',
  },
  {
    id: 'promo002',
    target: '市行普惠金融部',
    reason: '客户有大额融资需求',
    applicant: '王磊',
    org: '南京浦口支行',
    time: '2024-05-10 10:00:00',
    status: '一审通过',
    auditOpinion: '市行同意',
    auditTime: '2024-05-11 11:00:00',
    auditUser: '市行管理员',
  },
  {
    id: 'promo003',
    target: '省行零售金融部',
    reason: '客户为高净值客户',
    applicant: '李娜',
    org: '南京江宁支行',
    time: '2024-05-12 12:00:00',
    status: '待审核',
    auditOpinion: '',
    auditTime: '',
    auditUser: '',
  },
  {
    id: 'promo004',
    target: '市行公司金融部',
    reason: '客户为新开企业',
    applicant: '刘洋',
    org: '南京新街口支行',
    time: '2024-05-13 13:00:00',
    status: '未通过',
    auditOpinion: '资料不全',
    auditTime: '2024-05-14 14:00:00',
    auditUser: '市行管理员',
  },
  {
    id: 'promo005',
    target: '省行普惠金融部',
    reason: '客户为三农龙头企业',
    applicant: '孙磊',
    org: '南京软件谷支行',
    time: '2024-05-15 15:00:00',
    status: '待审核',
    auditOpinion: '',
    auditTime: '',
    auditUser: '',
  },
]

// 审核列表（行业/客户/提级营销）
export const audits = [
  {
    id: 'audit001',
    name: '南京制造业',
    submitTime: '2024-05-01 09:00:00',
    status: '已通过',
    type: '行业',
    opinion: '行业发展潜力大',
    auditTime: '2024-05-02 10:00:00',
    auditUser: '省行领导',
  },
  {
    id: 'audit002',
    name: '南京软件业',
    submitTime: '2024-05-02 10:00:00',
    status: '审核中',
    type: '行业',
    opinion: '',
    auditTime: '',
    auditUser: '',
  },
  {
    id: 'audit003',
    name: '南京零售业',
    submitTime: '2024-05-03 11:00:00',
    status: '未通过',
    type: '行业',
    opinion: '资料不全',
    auditTime: '2024-05-04 12:00:00',
    auditUser: '省行领导',
  },
  {
    id: 'audit004',
    name: '南京物流业',
    submitTime: '2024-05-04 12:00:00',
    status: '未提交',
    type: '行业',
    opinion: '',
    auditTime: '',
    auditUser: '',
  },
  {
    id: 'audit005',
    name: '南京金融业',
    submitTime: '2024-05-05 13:00:00',
    status: '已通过',
    type: '行业',
    opinion: '金融业AUM高',
    auditTime: '2024-05-06 14:00:00',
    auditUser: '省行领导',
  },
]

// 审核记录（用于详情页）
export const auditLogs = [
  {
    id: 'log001',
    user: '省行领导',
    time: '2024-05-02 10:00:00',
    result: '通过',
    opinion: '行业发展潜力大',
  },
  {
    id: 'log002',
    user: '省行领导',
    time: '2024-05-03 12:00:00',
    result: '不通过',
    opinion: '资料不全',
  },
  {
    id: 'log003',
    user: '市行管理员',
    time: '2024-05-04 13:00:00',
    result: '通过',
    opinion: '同意',
  },
  {
    id: 'log004',
    user: '市行管理员',
    time: '2024-05-05 14:00:00',
    result: '不通过',
    opinion: '信息不符',
  },
  {
    id: 'log005',
    user: '省行领导',
    time: '2024-05-06 15:00:00',
    result: '通过',
    opinion: '同意',
  },
]

// 审核流程节点（提级营销审核详情页用）
export const auditNodes = [
  {
    name: '市行个金部',
    user: '李华',
    time: '2024-05-02 10:00:00',
    result: '通过',
    opinion: '同意提级',
  },
  {
    name: '省行三农部',
    user: '王磊',
    time: '2024-05-03 15:00:00',
    result: '通过',
    opinion: '重点客户，建议跟进',
  },
  {
    name: '省行个金部',
    user: '',
    time: '',
    result: '待审核',
    opinion: '',
  },
  {
    name: '省行公司部',
    user: '',
    time: '',
    result: '待审核',
    opinion: '',
  },
]
